<?php

use yii\helpers\Url;

$tab_list = [
    'index' => [
        'title' => '人员列表',
        'url' => '/admin/user/index',
    ],
    'set' => [
        'title' => '创建人员',
        'url' => '/admin/user/set',
    ],
];
?>
<div class=" ui inverted segment">
    <div class=" ui inverted secondary pointing menu">
        <?php foreach ($tab_list as $key => $item): ?>
            <a class="item <?php if ($tab == $key): ?>active<?php endif; ?> "
               href="<?= Url::to([$item['url']]) ?>"><?= $item['title'] ?> </a>
        <?php endforeach; ?>
    </div>
</div>
